<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warehouse_id')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-warehouse_id" data-rule="required" data-source="information/warehouse/index" class="form-control selectpage" name="row[warehouse_id]" type="text" value="">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-4">        
            <select  id="c-type" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}"  >{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-name" class="form-control" data-rule="required;" name="row[name]" type="text">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-4">           
            <select  id="c-switch" class="form-control selectpicker" name="row[switch]">
                {foreach name="switchList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="house-area" >
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_number')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_number" class="form-control" name="row[max_number]" type="text">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_weight')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_weight" class="form-control" name="row[max_weight]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_volume')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_volume" class="form-control" name="row[max_volume]" type="text">
        </div>
        <label class="control-label col-xs-12 col-sm-2">箱数限制:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_number" class="form-control" name="row[max_box]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">长:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-size" class="form-control" name="row[long]" type="text">
        </div>
        <!-- <label class="control-label col-xs-12 col-sm-2">托盘限制:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-max_number" class="form-control" name="row[max_tray]" type="text">
        </div> -->
        <label class="control-label col-xs-12 col-sm-2">批号:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-cBatch" class="form-control" name="row[cBatch]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">高:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-size" class="form-control" name="row[high]" type="text">
        </div>
        <div class="house-good" hidden>
            <label class="control-label col-xs-12 col-sm-2">{:__('Row_number')}:</label>
            <div class="col-xs-12 col-sm-4">
                <input id="c-row_number"  data-rule="required;" class="form-control" name="row[row_number]" type="number">
            </div>
        </div>
        
        <label class="control-label col-xs-12 col-sm-2">是否混放:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[ifmix]', $radioArr,1,['disabled'=>true])}
        </div>
        
    </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">宽:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-size" class="form-control" name="row[width]" type="text">
        </div>
        <div class="house-good" hidden>
            <label class="control-label col-xs-12 col-sm-2">{:__('Column_number')}:</label>
            <div class="col-xs-12 col-sm-4">
                <input id="c-column_number" data-rule="required;" class="form-control" name="row[column_number]" type="number">
            </div>
        </div>
        
        <label class="control-label col-xs-12 col-sm-2">属性:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[wh_type]', $whTypeArr,1)}
        </div>

    </div>

     <div class="form-group">
          <label class="control-label col-xs-12 col-sm-2">{:__('Source')}:</label>
          <div class="col-xs-12 col-sm-4">
              <select  id="c-source" class="form-control selectpicker" name="row[source]">
                  {foreach name="sourceList" item="vo"}
                  <option value="{$key}" >{$vo}</option>
                  {/foreach}
              </select>
          </div>
          <div class="house-good" hidden>
          <label class="control-label col-xs-12 col-sm-2">{:__('Layers_number')}:</label>
          <div class="col-xs-12 col-sm-4">
              <input id="c-layers_number"  data-rule="required;" class="form-control" name="row[layers_number]" type="number">
          </div>
          </div>
          
          
          <label class="control-label col-xs-12 col-sm-2">批次管理:</label>
	      <div class="col-xs-12 col-sm-4">
	           {:build_select('row[ifbatch]', $radioArr,2,['disabled'=>true])}
	      </div>
        
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-10">
            <textarea id="c-description" class="form-control " rows="5" name="row[description]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-10">
            <textarea id="c-remark" class="form-control " rows="5" name="row[remark]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
